package verify

var VerifyInitTpl = `
package verify

import (
    "github.com/go-playground/locales/zh"
    ut "github.com/go-playground/universal-translator"
    "github.com/go-playground/validator/v10"
    zh_tran "github.com/go-playground/validator/v10/translations/zh"
)

var (
    Verify = validator.New()
    Tans   ut.Translator
)

func Init() {
    cn := zh.New()
    uni := ut.New(cn)
    Tans, _ = uni.GetTranslator("zh")
    zh_tran.RegisterDefaultTranslations(Verify, Tans)
}
`
